home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / pupworld.swf / scripts / __Packages / pi / Cursor.as < prev    next >
Encoding:
Text File  |  2011-06-09  |  337 b   |  20 lines

  1. class pi.Cursor extends MovieClip
  2. {
  3.    var state;
  4.    function Cursor()
  5.    {
  6.       super();
  7.       this.state = "normal";
  8.       Mouse.hide();
  9.       this.startDrag(true);
  10.    }
  11.    function setState(newState)
  12.    {
  13.       this.state = newState;
  14.    }
  15.    function onEnterFrame()
  16.    {
  17.       this.gotoAndPlay(this.state);
  18.    }
  19. }
  20.